package com.wgu.modules.web;

import com.wgu.common.global.Result;
import com.wgu.modules.service.ChapterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: w
 * @Date: 2019/7/4 17:25
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/chapter")
@Api(tags = "章节模块", description = "此模块对所有章节进行处理")
public class ChapterController {
    @Resource
    private ChapterService chapterService;

    @GetMapping("/export")
    @ApiOperation(value = "根据书名对章节进行整理==》暂不支持前台整理")
    public Result export(@RequestParam String name){
        //chapterService.export(name);
        return Result.ok();
    }
}
